package com.springboot.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sun.jdi.Type;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @TableName jsh_material_current_stock
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName ("jsh_material_current_stock")
public class JshMaterialCurrentStock {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Long materialId;

    private Long depotId;

    private BigDecimal currentNumber;

    private BigDecimal currentUnitPrice;

    private Long tenantId;

    private String deleteFlag;

    public JshMaterialCurrentStock(Long materialId, Long depotId, BigDecimal currentNumber) {
        this.materialId = materialId;
        this.depotId = depotId;
        this.currentNumber = currentNumber;
    }

    public JshMaterialCurrentStock(Long materialId, Long depotId) {
        this.materialId = materialId;
        this.depotId = depotId;
    }
}